Skip to content

Conversation

Geokureli
Copy link
Member

@Geokureli Geokureli commented Apr 17, 2025

WIP

Closes #2301 and #2898

Adds various sprite.clipToWorldRect(someRect) and sprite.clipToViewRect(someRect) methods that adjust the sprites clipRect so that it matches the given world or view coordinate

To Do

  • Retry CI when stuff works
  • Find out why this fails on hardware="false"
  • Use different x/y values in tests. this would have caught the previous error
  • Make getPixelAt this work with sprite.color and colorTransform

@Geokureli Geokureli changed the title Frame clip rect Add clipToWorldBounds and converters between: frame, world, view and game Apr 17, 2025
@Geokureli Geokureli mentioned this pull request Apr 17, 2025
@Geokureli Geokureli changed the base branch from dev to 6.2.0 April 28, 2025 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Oddities when using clipRect + scale.
1 participant